package com.baige.service.statistic.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品的统计
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods_statistic")
public class GoodsStatistic extends Model<GoodsStatistic> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 商品id
     */
    @TableField("goods_id")
    private String goodsId;
    /**
     * 总pv
     */
    @TableField("total_pv")
    private Integer totalPv;
    /**
     * 总uv
     */
    @TableField("total_uv")
    private Integer totalUv;
    /**
     * 总收藏数
     */
    @TableField("total_favourity_count")
    private Integer totalFavourityCount;
    /**
     * 总订单数
     */
    @TableField("total_order_count")
    private Integer totalOrderCount;
    /**
     * 总的支付订单数
     */
    @TableField("total_paid_order_count")
    private Integer totalPaidOrderCount;
    /**
     * 总的创建天数(第一次上架截止到当前的时间)
     */
    @TableField("total_create_days")
    private Integer totalCreateDays;
    /**
     * 总的上架天数(上架-下架时间)
     */
    @TableField("total_shelves_days")
    private Integer totalShelvesDays;
    /**
     * 总的租赁天数
     */
    @TableField("total_rent_days")
    private Integer totalRentDays;
    /**
     * 会员卡的总租赁天数
     */
    @TableField("total_card_rent_days")
    private Integer totalCardRentDays;
    /**
     * 总物流天数
     */
    @TableField("total_logistics_days")
    private Integer totalLogisticsDays;
    /**
     * 总的租金收益(按天累计算收益)
     */
    @TableField("total_rent_earnings_amount")
    private BigDecimal totalRentEarningsAmount;
    /**
     * 总物流收益
     */
    @TableField("total_logistics_earnings_amount")
    private BigDecimal totalLogisticsEarningsAmount;
    /**
     * 总保险收益
     */
    @TableField("total_insurance_earnings_amount")
    private BigDecimal totalInsuranceEarningsAmount;
    /**
     * 支付物流订单总数
     */
    @TableField("total_logistics_count")
    private Integer totalLogisticsCount;
    /**
     * 支付保险订单总数
     */
    @TableField("total_insurance_count")
    private Integer totalInsuranceCount;
    /**
     * 统计日期
     */
    @TableField("statistic_date")
    private String statisticDate;
    @TableField("create_time")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
